﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Global.Const;

namespace ViewModels.Shared
{
    public interface ICaptchaModel
    {
        [StringLength(4, MinimumLength = 4, ErrorMessage = "* 长度只能为4")]
        [Required(ErrorMessage = "* 不能为空")]
        public string Captcha { get; set; }
    }

    public class CaptchaModel : ICaptchaModel
    {
        public string Captcha { get; set; }
    }
}
